<extend name="./Application/Admin/View/base.html" />
<block name="title"><title><?php echo C(APP_NAME);?>PC端管理</title></block>
<block name="stylesheets">
<link rel="stylesheet" href="__PUBLIC__/assets/css/jquery-ui.css" />
</block>
<block name="stylecss">
<style type='text/css'>
    table tr td{
        width: 80%;
    }
    table tr th{
        width: 16%;
        text-align: center;
        vertical-align: middle!important;
    }
</style>
</block>
<block name="smallmenu">
<ul class="breadcrumb">
	<li>
		<i class="ace-icon fa fa-home home-icon"></i>
		<a href="{:U('Index/index')}">主页</a>
	</li>
    <li>
        <a href="{:U('Adminauth/admin')}">管理员列表</a>
    </li>
    <li class="active">修改管理员信息</li>
</ul><!-- /.breadcrumb -->

</block>

<block name="content">
<form action="__CONTROLLER__/admin_edit" method='post' id='myformedit' enctype="multipart/form-data">
<input type="hidden" name='admin_id' value="{$admininfo.admin_id}">
<input type="hidden" name='action' value="admin_edit_action">
<div class="row" style="margin-bottom:7px">
    <div class="col-xs-12"><span class="label label-warning"><i class="ace-icon fa fa-user bigger-120"></i> 修改管理员信息 </span></div>
</div>
<table class="table table-striped table-bordered table-hover" >
    <tr>
        <th>所在权限组</th>
        <td><span style="color:green">{$admininfo.title}</span></td>
    </tr>
    <tr>
        <th>账号名称</th>
        <td>{$admininfo.admin_name}</td>
    </tr>
    <tr>
        <th>联系电话</th>
        <td><input type="text" name="admin_phone" value="{$admininfo.admin_phone}"></td>
    </tr>
    <tr>
        <th>头像</th>
        <td>
            <div class="nfile_imgbox" >
                <input type="file" class="nfile" id="file_upload" name="avatar" />
                <?php if (!empty($admininfo['admin_avatar'])) { ?>
                <img src="{$admininfo.admin_avatar}" id="preview">
                <?php }else{ ?>
                <img src="__PUBLIC__/assets/images/addfile.png" id="preview">
                <?php } ?>
                <a class="nimg_style">+<img src=""> </a>
            </div>
        </td>
    </tr>
    <tr>
        <td colspan="2"><button type="submit" class="btn btn-sm btn-primary">修改信息</button> <span class="btn btn-sm" onClick="location.href='{:U('Adminauth/admin')}'">返回</span></td>
    </tr>
</table>
</form>

<form action="__CONTROLLER__/admin_edit" method='post' id='myformedit' enctype="multipart/form-data">
<input type="hidden" name='admin_id' value="{$admininfo.admin_id}">
<input type="hidden" name='action' value="changepwd_action">
<div class="row" style="margin-bottom:7px">
    <div class="col-xs-12"><span class="label label-purple"><i class="ace-icon fa fa-user bigger-120"></i> 重置密码 </span></div>
</div>
<table class="table table-striped table-bordered table-hover" >
    <tr>
        <th>账号密码</th>
        <td><input type="text" name="admin_password" class="col-xs-12"></td>
    </tr>
    <tr>
        <td colspan="2"><button type="submit" class="btn btn-sm btn-pink">重置密码</button> <span class="btn btn-sm" onClick="location.href='{:U('Adminauth/admin')}'">返回</span></td>
    </tr>
</table>
</form>
</block>
<block name="scripts"></block>
<block name="jscript">
<script script="text/javascript">
    $(function(){
        $('#menu_adminauth').addClass('active open');
        $('#menu_adminauth_admin').addClass('active');
    });
</script>
</block>